import request from '@/utils/request'
// 状态修改
export function changeUserStatus (serviceId, actStatus) {
  const data = {
    serviceId,
    actStatus
  }
  return request({
    url: '/service/changeStatus',
    method: 'put',
    data: data
  })
}
// 查询养老服务列列表
export function listService (query) {
  return request({
    url: '/service/list',
    method: 'get',
    params: query
  })
}

// 查询养老服务列详细
export function getService (serviceId) {
  return request({
    url: '/service/' + serviceId,
    method: 'get'
  })
}

// 新增养老服务列
export function addService (data) {
  return request({
    url: '/service',
    method: 'post',
    data: data
  })
}

// 修改养老服务列
export function updateService (data) {
  return request({
    url: '/service',
    method: 'put',
    data: data
  })
}

// 删除养老服务列
export function delService (serviceId) {
  return request({
    url: '/service/' + serviceId,
    method: 'delete'
  })
}
